import { get, post,postFormData,getfile,postfile} from './http'


export const manage_findAll = p => get('company/getFactory', p); //获取所有厂区
export const company_save = p => postFormData('company/save',p); // 添加厂区
export const emPower_lookState = p => get('/emPower/lookState',p); // 获取数据授权信息
export const manage_getAllFactory = p => get('company/getAllFactory', p); //获取所有厂区和国家标准
// export const test = p => get('/emPower/test', p); //获取所有厂区和国家标准
// export const lookTemplateState = p => get('/lookTemplateState', p); //获取所有厂区和国家标准
export const materials_import = p => postFormData('/materialBreed/import',p); // 物料管理导入
export const technology_import = p => postFormData('/technology/import',p); // 工艺工序导入
export const check_import = p => postFormData('/check/import', p); // 检测依据导入

export const emPower_updateState = p => post('/emPower/updateState', p); //修改厂区授权
export const updateTemplateState = p => post('/emPower/updateTemplateState', p); //修改模板授权
export const materialBreed_export = p => post('/materialBreed/export', p); //导出
export const lookTemplateState = p => get('/emPower/lookTemplateState', p); //获取打印模板
export const menu_findByAll = p => get('/menu/findByAll', p); //获取打印模板
export const template_findByCompanyId = p => get('/template/findByCompanyId', p); //获取二级切换
export const getnewVisions = p => getfile('/print/getBarCodeByBatch?batch='+p); //获取新模板
export const materialBreed_findById = p => get('/materialBreed/findById/', p); //获取二级切换
export const materialBreed_findByLis = p => post('/materialBreed/findByList', p); //获取列表
// export const materials_export = p =>postfile('/materialBreed/export',p);

export const template_save = p => post("/template/save",p)//保存模板
export const materialBreed_save = p => post("/materialBreed/save",p)//保存/编辑备案号



